package org.lex.elec.apps.cad.model;

import org.lex.elec.apps.cad.model.device.Cabinet;
import org.lex.elec.apps.cad.model.device.Circuit;

public class CommonPowerGrid implements PowerGrid {
	private Cabinet root = null;

	public CommonPowerGrid() {
		Circuit feeder = new Circuit();
		feeder.setId("n1");
		feeder.setName("总进线");
		feeder.setLoad(new LinearLoad());

		root = new Cabinet();
		root.setId("ZX");
		root.setName("ZX");
		root.setFeeder(feeder);
	}

	public Cabinet getRoot() {
		return root;
	}

	public void setRoot(Cabinet root) {
		this.root = root;
	}
}
